package java9;

import java.util.logging.Logger;

public class LoggerTest {
    public static void main(String[] args) {
        Logger logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
        System.out.println(logger.getName());

        Test<String> test = new Test<>("AAA") {   //匿名内部类支持自动类型推断
            //在Java 9之后，这样的写法终于可以编译通过了
            @Override
            public String test() {
                return t;
            }
        };
    }
}
